<?php
/**
 * Copyright (c) 2006-2008, Julien PORTALIER
 * http://featherphp.googlecode.com/
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 */

require_once 'libs/xml.php';

$var = Inflector::tableize($this->model_class);
if (isset($this->$var)) {
	echo xml::transform($this->$var, $this->model_class);
}
elseif (isset($this->{$this->model_class})) {
	echo xml::transform($this->{$this->model_class}, $this->model_class);
}

#exit;
?>